#!/usr/bin/node

const PI = Math.PI;

module.exports = (r) => {
  function diameter(){
    return 2 * r;
  }

  function area(){
    return PI * r * r;
  }

  function circumference(){
    return 2 * PI * r;
  }

  return{diameter,area,circumference};
}

console.log(module);
